class AddFieldsToExam < ActiveRecord::Migration
  def self.up
    add_column :exams, :category_id, :integer, :default => 0
    add_column :exams, :start, :datetime
    add_column :exams, :end, :datetime
  end

  def self.down
    remove_column(:exams, :category_id)
    remove_column(:exams, :start)
    remove_column(:exams, :end)
  end
end
